package it.zqdszb.library.api;

import it.zqdszb.library.common.JConstant;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * 测试接口service-post相关
 * Created by wcy on 2017/3/14.
 */

public interface HttpPostService {
    //@Path("province_id") String province_id, @Query("token") String token


    //电视tab
    String getTvTab = "getTvTab";
    @GET("tv/groups/{parent_id}"+".json")
    Observable<String> getTvTab(@Path("parent_id") String parent_id);

    //热播数据
    String getLiveHotChannel = "getLiveHotChannel";
    @GET("tv/hot_channel/4/"+ JConstant.CLEINT_ID+"/"+JConstant.VERSION)
    Observable<String> getLiveHotChannel();


    //频道列表数据
    String getChannellist = "getChannellist";
    @GET("tv/cate_channels/{groupId}/4/"+ JConstant.CLEINT_ID+"/"+JConstant.VERSION)
    Observable<String> getChannellist( @Path("groupId") String groupId);//


    //根据直播频道id查询指定频道直播地址

    String getChannelPlayLink = "getChannelPlayLink";
    @GET("tv/liveurls/{channelId}/4/1/"+ JConstant.CLEINT_ID+"/"+JConstant.VERSION)
    Observable<String> getChannelPlayLink( @Path("channelId") String channelId);

}
